
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>k210 · book for nxos</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="nxos development team">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="d1.html" />
    
    
    <link rel="prev" href="qemu_riscv64.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://book-os.org" target="_blank" class="custom-link">bookos</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    NXOS文档中心
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" >
            
                <span>
            
                    
                    简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    NXOS 简介
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.2" >
            
                <span>
            
                    
                    快速上手
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.2.1" data-path="../../tutorial/quick-start.html">
            
                <a href="../../tutorial/quick-start.html">
            
                    
                    虚拟平台运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3" >
            
                <span>
            
                    
                    内核
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.1" data-path="../base/framework.html">
            
                <a href="../base/framework.html">
            
                    
                    整体框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.2" data-path="../base/start.html">
            
                <a href="../base/start.html">
            
                    
                    启动流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3" data-path="../mm/mm.html">
            
                <a href="../mm/mm.html">
            
                    
                    内存管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.3.1" data-path="../mm/buddy.html">
            
                <a href="../mm/buddy.html">
            
                    
                    buddy伙伴算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3.2" data-path="../mm/heap.html">
            
                <a href="../mm/heap.html">
            
                    
                    heapCache虚拟内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.3.3" data-path="../mm/vmspace.html">
            
                <a href="../mm/vmspace.html">
            
                    
                    vmspace虚拟地址空间
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.4" data-path="../sched/sched.html">
            
                <a href="../sched/sched.html">
            
                    
                    调度管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.4.1" data-path="../sched/thread.html">
            
                <a href="../sched/thread.html">
            
                    
                    线程管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3.4.2" data-path="../sched/smp.html">
            
                <a href="../sched/smp.html">
            
                    
                    SMP多核调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.5" data-path="../process/process.html">
            
                <a href="../process/process.html">
            
                    
                    进程管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.5.1" data-path="../process/syscall.html">
            
                <a href="../process/syscall.html">
            
                    
                    系统调用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.6" data-path="../interrupt/irq.html">
            
                <a href="../interrupt/irq.html">
            
                    
                    中断系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.3.6.1" data-path="../interrupt/delay_queue.html">
            
                <a href="../interrupt/delay_queue.html">
            
                    
                    延迟队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.3.7" data-path="../timer/timer.html">
            
                <a href="../timer/timer.html">
            
                    
                    定时器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.4" >
            
                <span>
            
                    
                    内核移植
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.4.1" data-path="../port/riscv/riscv.html">
            
                <a href="../port/riscv/riscv.html">
            
                    
                    riscv架构移植
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.5" >
            
                <span>
            
                    
                    平台支持
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.5.1" data-path="i386.html">
            
                <a href="i386.html">
            
                    
                    i386
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.2" data-path="qemu_riscv64.html">
            
                <a href="qemu_riscv64.html">
            
                    
                    qemu_riscv64
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.5.3" data-path="k210.html">
            
                <a href="k210.html">
            
                    
                    k210
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.4" data-path="d1.html">
            
                <a href="d1.html">
            
                    
                    d1-nezha
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.5.5" data-path="hifive_unmached.html">
            
                <a href="hifive_unmached.html">
            
                    
                    hifive unmached
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.6" >
            
                <span>
            
                    
                    用户态服务和驱动框架
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.6.1" data-path="../user/userver.html">
            
                <a href="../user/userver.html">
            
                    
                    用户态服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.6.2" data-path="../user/udriver.html">
            
                <a href="../user/udriver.html">
            
                    
                    用户态驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.6.3" data-path="../user/ubpf.html">
            
                <a href="../user/ubpf.html">
            
                    
                    UBPF
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.7" >
            
                <span>
            
                    
                    用户接口
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.7.1" data-path="../user/api.html">
            
                <a href="../user/api.html">
            
                    
                    API设计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.1.8" >
            
                <span>
            
                    
                    编程开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.8.1" data-path="../../tutorial/code-style.html">
            
                <a href="../../tutorial/code-style.html">
            
                    
                    代码风格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.2" data-path="../../tutorial/commit-rule.html">
            
                <a href="../../tutorial/commit-rule.html">
            
                    
                    提交规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.3" data-path="../../tutorial/menuconfig.html">
            
                <a href="../../tutorial/menuconfig.html">
            
                    
                    菜单配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.4" data-path="../../tutorial/toolchains.html">
            
                <a href="../../tutorial/toolchains.html">
            
                    
                    工具链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.8.5" data-path="../../tutorial/utest.html">
            
                <a href="../../tutorial/utest.html">
            
                    
                    单元测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >k210</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="k210&#x5E73;&#x53F0;&#x7B80;&#x4ECB;">k210&#x5E73;&#x53F0;&#x7B80;&#x4ECB;</h1>
<p>&#x52D8;&#x667A;Kendryte K210&#x662F;&#x5609;&#x6960;&#x79D1;&#x6280;&#x516C;&#x53F8;&#x63A8;&#x51FA;&#x7684;&#x57FA;&#x4E8E;RISC-V&#x67B6;&#x6784;&#x7684;64&#x4F4D;&#x53CC;&#x6838;SOC&#x3002;</p>
<ul>
<li>&#x53CC;&#x6838; 64-bit RISC-V RV64IMAFDC (RV64GC) CPU / 400MHz&#xFF08;&#x53EF;&#x8D85;&#x9891;&#x5230;600MHz&#xFF09;</li>
<li>&#x53CC;&#x7CBE;&#x5EA6; FPU</li>
<li>8MiB 64bit &#x7247;&#x4E0A; SRAM&#xFF08;6MiB&#x901A;&#x7528;SRAM+2MiB&#x7684;AI&#x4E13;&#x7528;SRAM&#xFF09;</li>
<li>&#x795E;&#x7ECF;&#x7F51;&#x7EDC;&#x5904;&#x7406;&#x5668;&#xFF08;KPU&#xFF09; / 0.8TFLOPS</li>
<li>&#x97F3;&#x9891;&#x5904;&#x7406;&#x5668;&#xFF08;APU&#xFF09;</li>
<li>&#x53EF;&#x7F16;&#x7A0B; IO &#x9635;&#x5217; (FPIOA)</li>
<li>&#x53CC;&#x786C;&#x4EF6;512&#x70B9;16&#x4F4D;&#x590D;&#x6570;FFT</li>
<li>SPI, I2C, UART, I2S, RTC, PWM, &#x5B9A;&#x65F6;&#x5668;&#x652F;&#x6301;</li>
<li>AES, SHA256 &#x52A0;&#x901F;&#x5668;</li>
<li>&#x76F4;&#x63A5;&#x5185;&#x5B58;&#x5B58;&#x53D6;&#x63A7;&#x5236;&#x5668; (DMAC)</li>
</ul>
<h1 id="&#x529F;&#x80FD;&#x652F;&#x6301;">&#x529F;&#x80FD;&#x652F;&#x6301;</h1>
<ul>
<li>[x] RustSBI&#x56FA;&#x4EF6;</li>
<li>[x] &#x5185;&#x5B58;&#x7BA1;&#x7406;</li>
<li>[x] &#x4E0A;&#x4E0B;&#x6587;&#x5207;&#x6362;</li>
<li>[x] &#x5B9A;&#x65F6;&#x5668;&#x65F6;&#x949F;</li>
<li>[x] &#x539F;&#x5B50;&#x64CD;&#x4F5C;</li>
<li>[x] &#x5185;&#x5B58;&#x5C4F;&#x969C;</li>
<li>[x] SMP&#x591A;&#x6838;</li>
<li>[x] MMU&#x652F;&#x6301;</li>
<li>[x] &#x4E2D;&#x65AD;&#x7BA1;&#x7406;</li>
<li>[x] &#x7CFB;&#x7EDF;&#x8C03;&#x7528;&#x652F;&#x6301;</li>
<li>[x] &#x6267;&#x884C;&#x7528;&#x6237;&#x6001;&#x7A0B;&#x5E8F;</li>
<li>[x] &#x4E32;&#x53E3;&#x8F93;&#x5165;&#x8F93;&#x51FA;</li>
<li>[x] &#x901A;&#x8FC7;&#x5355;&#x5143;&#x6D4B;&#x8BD5;&#x548C;&#x96C6;&#x6210;&#x6D4B;&#x8BD5;</li>
<li>[ ] gdb&#x8C03;&#x8BD5;</li>
</ul>
<h1 id="&#x8FD0;&#x884C;&#x65B9;&#x6CD5;">&#x8FD0;&#x884C;&#x65B9;&#x6CD5;</h1>
<pre><code class="lang-bash"><span class="hljs-comment"># 1. &#x8FDB;&#x5165;nxos&#x6E90;&#x7801;&#xFF0C;&#x6253;&#x5F00;&#x7EC8;&#x7AEF;&#x3002;</span>
<span class="hljs-comment"># 2. &#x521D;&#x59CB;&#x5316;&#x73AF;&#x5883;</span>
<span class="hljs-built_in">source</span> setup.sh riscv64-k210    <span class="hljs-comment"># linux</span>
setup.bat riscv64-k210          <span class="hljs-comment"># windows</span>
<span class="hljs-comment"># 3. &#x83B7;&#x53D6;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;</span>
make defconfig
<span class="hljs-comment"># 4. &#x7F16;&#x8BD1;&#x8FD0;&#x884C;</span>
make run -j8 UART=/dev/ttyUSB0  <span class="hljs-comment"># linux: -jN&#x662F;&#x591A;&#x7EBF;&#x7A0B;&#x7F16;&#x8BD1;, UART&#x662F;&#x4E32;&#x53E3;&#x8BBE;&#x5907;&#xFF0C;&#x9700;&#x8981;&#x5728;&#x8BBE;&#x5907;&#x5217;&#x8868;&#x67E5;&#x770B;&#x662F;&#x54EA;&#x4E2A;&#x8BBE;&#x5907;&#xFF0C;&#x9ED8;&#x8BA4;&#x662F;/dev/ttyUSB0&#xFF0C;&#x53EF;&#x4EE5;&#x4E0D;&#x5199;&#x3002;</span>
make run -j8 UART=com3          <span class="hljs-comment"># windows: -jN&#x662F;&#x591A;&#x7EBF;&#x7A0B;&#x7F16;&#x8BD1;, UART&#x662F;&#x4E32;&#x53E3;&#x8BBE;&#x5907;&#xFF0C;&#x9700;&#x8981;&#x5728;&#x8BBE;&#x5907;&#x7BA1;&#x7406;&#x5668;&#x67E5;&#x770B;&#xFF0C;k210&#x7684;&#x8BBE;&#x5907;&#x662F;&#x54EA;&#x4E2A;&#x4E32;&#x53E3;&#x3002;</span>

<span class="hljs-comment"># 5. ctrl + ] &#x9000;&#x51FA;k210&#x7684;&#x8FD0;&#x884C;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="qemu_riscv64.html" class="navigation navigation-prev " aria-label="Previous page: qemu_riscv64">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="d1.html" class="navigation navigation-next " aria-label="Next page: d1-nezha">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"k210","level":"1.1.5.3","depth":3,"next":{"title":"d1-nezha","level":"1.1.5.4","depth":3,"path":"programing-manual/platform/d1.md","ref":"programing-manual/platform/d1.md","articles":[]},"previous":{"title":"qemu_riscv64","level":"1.1.5.2","depth":3,"path":"programing-manual/platform/qemu_riscv64.md","ref":"programing-manual/platform/qemu_riscv64.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy BookOS-developers 2022","modify_label":"修订时间：","modify_format":"YYYY-MM-DD"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"nxos development team","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"book for nxos","language":"zh-hans","links":{"sidebar":{"bookos":"http://book-os.org"}},"gitbook":"3.2.3","description":"document for nxos kernel"},"file":{"path":"programing-manual/platform/k210.md","mtime":"2022-05-03T18:23:23.502Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-05-06T18:41:01.186Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

